/**
 * 2012-7-8
 * jqsl2012@163.com
 */
package net.jeeshop.services.front.appointments.impl;

import net.jeeshop.core.ServersManager;
import net.jeeshop.services.front.appointments.AppointmentsService;
import net.jeeshop.services.front.appointments.bean.Appointments;
import net.jeeshop.services.front.appointments.dao.AppointmentsDao;

import java.util.List;


/**
 * @author huangf
 */
public class AppointmentsServiceImpl extends ServersManager<Appointments> implements AppointmentsService {

    private AppointmentsDao appointmentsDao;

    public AppointmentsDao getAppointmentsDao () {
        return appointmentsDao;
    }

    public void setAppointmentsDao (AppointmentsDao appointmentsDao) {
        this.appointmentsDao = appointmentsDao;
    }

    /**
     * @param e
     */
    public List<Appointments> selecIndexNews (Appointments e) {
        return appointmentsDao.selecIndexAppointments(e);
    }

    @Override
    public List<String> selectAllMd5 () {
        // TODO Auto-generated method stub
        return appointmentsDao.selectAllMd5();
    }

    @Override
    public void updateInBlackList (String[] ids) {
        // TODO Auto-generated method stub
        //		if(ids==null || ids.length==0){
        //			return;
        //		}
        //
        //		for(int i=0;i<ids.length;i++){
        //			String e = ids[i];
        //			appointmentsDao.updateInBlackList(e);
        //		}
    }

    @Override
    public void sync (String[] ids, int status) {
        //		if(ids==null || ids.length==0){
        //			return;
        //		}
        //
        //		for(int i=0;i<ids.length;i++){
        //			Appointments Appointments = new Appointments();
        //			Appointments.setId(ids[i]);
        ////			Appointments.setStatus(status);
        //			appointmentsDao.sync(Appointments);
        //		}
    }

    @Override
    public List<Appointments> selectNoticeList (Appointments appointments) {
        return appointmentsDao.selectNoticeList(appointments);
    }

    @Override
    public Appointments selectSimpleOne (Appointments appointments) {
        return appointmentsDao.selectSimpleOne(appointments);
    }

}
